package cn.t.xsmart.modulestudy.application;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * Created by Lychee of on 2018/5/16 16:44.
 * <p>
 * Author: HeJingzhou
 * <p>
 * Email: tcowork@163.com
 */
public class ModuleApplication extends Application {
    private static ModuleApplication instance;
    public static final boolean isDebugModel = true;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        initARouter();
    }

    /**
     * 初始化路由器
     */
    private void initARouter() {
        if (isDebugModel) {
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(this);
    }
}
